package F02;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test4FileOutStream {
    public static void main(String[] args) throws IOException {
        try {
            FileOutputStream fos=new FileOutputStream("1.tXT");
            fos.write("1".getBytes(StandardCharsets.UTF_8));
            fos.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
}
